package com.zhihuishu.micro.course.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

public interface IBaseService<T> {

    public T queryById(Integer id);

    public List<T> queryAll();

    public List<T> queryByWhere(T t);

    public T queryOne(T t);

    public PageInfo<T> queryPageListByWhere(T t, Integer pageNum, Integer pageSize);

    public Integer save(T t);

    public Integer saveSelective(T t);

    public Integer update(T t);

    public Integer updateSelective(T t);

    public Integer deleteById(Object id);

    public Integer deleteByIds(List<Object> ids, String property, Class<T> clazz);
}
